// 用户档案申请
const bscApplicationFile = (request) => {
	return {
		// 详情
		view_bscApplicationFile_id(id) {
			return request(`/application/bscApplicationFile/${id}`, {
				method: 'post',
			})
		},
		// 获取列表
		view_bscApplicationFile_page(query = {}) {
			return request('/application/bscApplicationFile/page', {
				method: 'post',
				data: query,
			})
		},
		// 机构发送档案
		view_bscApplicationFile_send(query = {}) {
			return request('/application/bscApplicationFile/send', {
				method: 'post',
				data: query,
			})
		},
		// 删除
		view_bscApplicationFile_del(id) {
			return request('/application/bscApplicationFile/del', {
				method: 'post',
				data: {
					batchesDel: [id],
				},
			})
		},
		// 修改
		view_bscApplicationFile_edit(query = {}) {
			return request('/application/bscApplicationFile/edit', {
				method: 'post',
				data: query,
			})
		},
		// 申请过程
		view_bscApplicationProcess_page(query = {}) {
			return request('/application/bscApplicationProcess/page', {
				method: 'post',
				data: query,
			})
		},
	}
}
// 预约入住申请
const bscServiceOrgReservation = (requst) => {
	return {
		// 列表
		view_bscServiceOrgReservation_page(query={}) {
            return requst('/application/bscServiceOrgReservation/page', {
				method: 'post',
				data: query,
			})
        },
        // 通过id小哈讯详情
        view_bscServiceOrgReservation_view(id){
            return requst(`/application/bscServiceOrgReservation/${id}`, {
				method: 'get',
			})
        },
        // 编辑
        view_bscServiceOrgReservation_edit(query={}) {
            return requst('/application/bscApplicationFile/edit', {
				method: 'post',
				data: query,
			})
        },
         // 删除
         view_bscServiceOrgReservation_del(query={}) {
            return requst('/application/bscApplicationFile/del', {
				method: 'post',
				data: query,
			})
        },
        // 机构申请通过
        view_bscServiceOrgReservation_pass(query={}) {
            return requst('/application/bscServiceOrgReservation/pass', {
				method: 'post',
				data: query,
			})
        },
        // 用户授权档案
        view_bscServiceOrgReservation_empower(query={}) {
            return requst('/application/bscServiceOrgReservation/empower', {
				method: 'post',
				data: query,
			})
        },
	}
}
export default ({ request }: any) => ({
	...bscApplicationFile(request),
    ...bscServiceOrgReservation(request)
})
